package com.my.design.observer;

public class ObserverTest {

    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        Observer o = new ConcreteObserver();
        subject.addObserver(o);
        subject.notifyRes();
    }
}
